Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: 修复 macOS 上遮挡控制按钮的问题 #48

Closed
wants to merge 2 commits into from

Conversation

Alexcn
Copy link

@Alexcn Alexcn commented Jul 31, 2024

Image
Monosnap oneanime 2024-08-01 00-08-11

修复前后对比

@Predidit
Copy link
Owner

Predidit commented Aug 1, 2024

我对 MacOS 缺乏了解。

MacOS是否允许隐藏窗体控制按钮,这样应该更好一些。

@Predidit
Copy link
Owner

Predidit commented Aug 7, 2024

我简单查阅了一下相关资料,似乎有这样的方法。

main.dart 中修改 windows_manager 相关调用为

    WindowOptions windowOptions = WindowOptions(
      size: isLowResolution ? const Size(800, 600) : const Size(1280, 860),
      center: true,
      skipTaskbar: false,
      titleBarStyle: TitleBarStyle.hidden,
      windowButtonVisibility: false,
    );

可以测试这个方法是否有效吗,有效的话您可以重新PR。

@Predidit Predidit closed this Aug 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants